import axios from 'axios'
import Qs from 'qs'

let base = 'http://localhost:9000';
let base2 = 'http://localhost:11000';
let base3 = 'http://localhost:12000';

export const storepost = (url, params) => {
  return axios({
    method: 'post',
    url: `${base}${url}`,
    data: Qs.stringify(params),
  });
}

export const storepost2 = (url, params) => {
  return axios({
    method: 'post',
    url: `${base}${url}`,
    data: params,
  });
}



export const userpost = (url, params) => {
  return axios({
    method: 'post',
    url: `${base2}${url}`,
    data: Qs.stringify(params),
  });
}

export const userpost2 = (url, params) => {
  return axios({
    method: 'post',
    url: `${base2}${url}`,
    data: params,
  });
}

export const orderepost = (url, params) => {
  return axios({
    method: 'post',
    url: `${base3}${url}`,
    data: Qs.stringify(params),
  });
}

export const orderepost2 = (url, params) => {
  return axios({
    method: 'post',
    url: `${base3}${url}`,
    data: params,
  });
}
